package com.example.anliku.entity.teamBody;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TeamMemberBody implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 团队和团队成员对应id
     */
    @ApiModelProperty(value = "团队和团队成员对应id")
    private Integer teamMemberNewId;

    /**
     * 用户id
     */
    @ApiModelProperty(value="用户id")
    private String teamMemberNewUserId;

    /**
     * 团队id
     */
    @ApiModelProperty(value="团队id")
    private Integer teamNewId;

    public static TeamMemberBody get(TeamMemberReturnBody requestBody) {
        return new TeamMemberBody(null,requestBody.getTeamMemberNewUserId(),requestBody.getTeamNewId());
    }
}
